package com.example.demo.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
 * 销售目标数据(附属表)
 * @author 龚海千
 *
 */
@Entity
public class TargetAndBackMonkey2 {
	private Integer id;
	private Integer years;
	private Integer month;
	private TargetAndBackMonkey target;
	private Integer allBuyCarTarget; //综合提车目标
	private Integer carTypeTarget; //车型提车目标
	private Integer mokeyCarTarget; //金融车目标
	private Integer insuranceTarget; //保险目标
	private Integer insuranceSetTarget; //保养套餐目标
	private Integer sSITarget; //SSI目标
	private Integer allGiveTarget; //综合交车目标
	private Integer carTypGiveeTarget; //车型交车目标
	private Integer exchangeTarget; //置换目标
	private Integer boutiqueTarget; //精品目标
	private Integer lengthenInsuranceTarget; //延保目标
	private Integer factoryLookTarget; //厂家现场评核目标
	private Integer theThirdLookTarget; //第三方评核目标
	
	private Date beginDate;//起始日期
	private Date endDate;//起始日期
	
	
	@Id
	@GeneratedValue
	@JsonIgnore
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne
	public TargetAndBackMonkey getTarget() {
		return target;
	}
	public void setTarget(TargetAndBackMonkey target) {
		this.target = target;
	}	

	public Integer getAllBuyCarTarget() {
		return allBuyCarTarget;
	}
	public void setAllBuyCarTarget(Integer allBuyCarTarget) {
		this.allBuyCarTarget = allBuyCarTarget;
	}
	public Integer getCarTypeTarget() {
		return carTypeTarget;
	}
	public void setCarTypeTarget(Integer carTypeTarget) {
		this.carTypeTarget = carTypeTarget;
	}
	public Integer getMokeyCarTarget() {
		return mokeyCarTarget;
	}
	public void setMokeyCarTarget(Integer mokeyCarTarget) {
		this.mokeyCarTarget = mokeyCarTarget;
	}
	public Integer getInsuranceTarget() {
		return insuranceTarget;
	}
	public void setInsuranceTarget(Integer insuranceTarget) {
		this.insuranceTarget = insuranceTarget;
	}
	public Integer getInsuranceSetTarget() {
		return insuranceSetTarget;
	}
	public void setInsuranceSetTarget(Integer insuranceSetTarget) {
		this.insuranceSetTarget = insuranceSetTarget;
	}
	public Integer getsSITarget() {
		return sSITarget;
	}
	public void setsSITarget(Integer sSITarget) {
		this.sSITarget = sSITarget;
	}
	public Integer getAllGiveTarget() {
		return allGiveTarget;
	}
	public void setAllGiveTarget(Integer allGiveTarget) {
		this.allGiveTarget = allGiveTarget;
	}
	public Integer getCarTypGiveeTarget() {
		return carTypGiveeTarget;
	}
	public void setCarTypGiveeTarget(Integer carTypGiveeTarget) {
		this.carTypGiveeTarget = carTypGiveeTarget;
	}
	public Integer getExchangeTarget() {
		return exchangeTarget;
	}
	public void setExchangeTarget(Integer exchangeTarget) {
		this.exchangeTarget = exchangeTarget;
	}
	public Integer getBoutiqueTarget() {
		return boutiqueTarget;
	}
	public void setBoutiqueTarget(Integer boutiqueTarget) {
		this.boutiqueTarget = boutiqueTarget;
	}
	public Integer getLengthenInsuranceTarget() {
		return lengthenInsuranceTarget;
	}
	public void setLengthenInsuranceTarget(Integer lengthenInsuranceTarget) {
		this.lengthenInsuranceTarget = lengthenInsuranceTarget;
	}
	public Integer getFactoryLookTarget() {
		return factoryLookTarget;
	}
	public void setFactoryLookTarget(Integer factoryLookTarget) {
		this.factoryLookTarget = factoryLookTarget;
	}
	public Integer getTheThirdLookTarget() {
		return theThirdLookTarget;
	}
	public void setTheThirdLookTarget(Integer theThirdLookTarget) {
		this.theThirdLookTarget = theThirdLookTarget;
	}
		
	public Integer getYears() {
		return years;
	}
	public void setYears(Integer years) {
		this.years = years;
	}
	public Integer getMonth() {
		return month;
	}
	public void setMonth(Integer month) {
		this.month = month;
	}
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginDate() {
		return beginDate;
	}
	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}
	
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd  HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd  HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

}